package kr.hkit.powerjava.chapter06.work;

import java.util.Scanner;

public class Programming1 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int a;
		int b;
		int c;
		System.out.print("정수를 입력하시오: ");
		a = input.nextInt();
		System.out.print("정수를 입력하시오: ");
		b = input.nextInt();
		System.out.print("정수를 입력하시오: ");
		c = input.nextInt();
		compare(a, b, c);			
		}

	static void compare(int a, int b, int c)
	{	
		if(a > b) {
			if(b > c)
				System.out.println(c+" "+b+" "+a);
			else if(a > c)
				System.out.println(b+" "+c+" "+a);
			else
				System.out.println(b+" "+a+" "+c);
		}
		else if(a > c)
			System.out.println(c+" "+a+" "+b);
		else if(b > c)
			System.out.println(a+" "+c+" "+b);
		else
			System.out.println(a+" "+b+" "+c);			
	}	
}


